import re
from ronglian_sms_sdk import SmsSDK #导入云通讯

# 导入短信验证码配置，邮件配置
from codeconfig import *

# 发送短信验证码函数
def send_message():
    sdk = SmsSDK(accId, accToken, appId)
    tid = '容联云通讯创建的模板ID'
    mobile = '手机号1,手机号2'
    datas = ('变量1', '变量2')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)
    return resp

# 发送邮件函数
def send_email():
    return "email"